<?php

namespace App\Model;

class TaskLogModel extends BaseModel
{
    protected $table = 'task_log';
    protected $primaryKey = 'task_log_id';

    protected $fillable = [
        'task_id',
        'user_id',
        'status',
        'num'
    ];

    public function taskInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(TaskModel::class,'task_id','task_id');
    }
}
